<?php
    include_once 'application/application.php';

    $J = new JSON();
    $action = $J->readVar('action');

    if (Auth::isLogged()) $J->result = true;
    else $J->result = Auth::login();

    echo $J;
?>